import http from '../utils/request.js'

// 获取商品列表
export const getGoodList = (params) => {
	return http.get('/app/findAllCommodity', {params})
}

// 获取单个商品详情
export const getGoodsDetails = (params) => {
	return http.get('/app/findCommodity', {params})
}

// 获取店铺列表
export const getStoreList = (params) => {
	return http.get('/app/findShop', {params})
}

// 获取店铺详情
export const getStoreDeails = (params) => {
	return http.get('/app/getShoBysId', {params})
}

// 店铺评论
export const sendComments = (params) => {
	return http.post('/app/comment/addSComment', params)
}